import React, { useEffect } from 'react';
import logo from './logo.svg';
import './App.css';
import request from './core/request';
function App() {
  const fetchData = async () => {
    try {
      const response = await request({
        url: '/login-password',
        method: 'GET',
        ignoreAuth: false,
      });
  
      console.log('Response:', response);
    } catch (error) {
      console.error('Error:', error);
    }
  };

  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p onClick={()=>{
          // fetchData()
        }}>
          Edit <code>src/App.tsx</code> and save to reload.
        </p>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          Learn React
        </a>
      </header>
    </div>
  );
}

export default App;
